
<?php
header("Content-type:text/html; charset=utf8");
session_start();
include('bbs.class.php');
$user_mail = $_SESSION['login_mail'];
$bbs = new bbs($user_mail);
$data = $bbs->listAllContent();
if(isset($_POST['type']) && $_POST['type'] == 'insert'){ $bbs->handContent($_POST['message']); }
if(isset($_POST['type']) && $_POST['type'] == 'delete'){ $bbs->deleteContent($_POST['bbs_id']); }
//print_r($data);
?>
